<template>
  <div class="block">
    <el-date-picker v-model="value1" type="date" :picker-options="pickerOptions" placeholder="选择日期">
    </el-date-picker>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        pickerOptions: {
          disabledDate(time) {  //禁用日期
            return time.getTime() > Date.now();
          },
        },
        value1: '',
      };
    }
  };
</script>
